<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>精通Java编程</title>
    <!-- 引入 Font Awesome (如果需要图标，虽然当前首页没有用到，但保持一致性) -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <!-- 引入 Tailwind CSS CDN -->
    <script src="https://cdn.tailwindcss.com"></script>
    <style>
        /* 你可以在这里添加一些自定义的 CSS，如果 Tailwind 没有提供你需要的细粒度控制 */
        body {
            font-family: 'Arial', 'sans-serif'; /* 可以根据需要调整字体 */
        }
    </style>
</head>
<body class="bg-gray-50 text-gray-800">
    <!-- 头部 -->
    <header class="bg-gray-800 text-white py-5">
        <div class="container mx-auto px-4 flex flex-col md:flex-row justify-between items-center">
            <h1 class="text-2xl font-bold mb-4 md:mb-0">
                <a href="/" class="text-white hover:text-gray-300">精通Java编程</a>
            </h1>
            <nav>
                <ul class="flex flex-wrap justify-center md:justify-end gap-x-4 gap-y-2">
                    <li><a href="#" class="bg-blue-600 hover:bg-blue-700 px-3 py-2 rounded transition-colors duration-300">首页</a></li>
                    <li><a href="#" class="hover:bg-gray-700 px-3 py-2 rounded transition-colors duration-300">技术分享</a></li>
                    <li><a href="#" class="hover:bg-gray-700 px-3 py-2 rounded transition-colors duration-300">软件开发心得</a></li>
                    <li><a href="#" class="hover:bg-gray-700 px-3 py-2 rounded transition-colors duration-300">源码分析</a></li>
                    <li><a href="#" class="hover:bg-gray-700 px-3 py-2 rounded transition-colors duration-300">关于我们</a></li>
                    <li><a href="downloads.html" class="hover:bg-gray-700 px-3 py-2 rounded transition-colors duration-300">软件下载</a></li>
                </ul>
            </nav>
        </div>
    </header>

    <!-- 主内容 -->
    <main class="py-8">
        <div class="container mx-auto px-4 flex flex-col lg:flex-row gap-8">
            <section class="latest-posts flex-grow lg:w-3/4">
                <h2 class="text-3xl font-bold text-gray-700 mb-6 border-b-2 border-gray-200 pb-2">最新文章</h2>
                <article class="bg-white rounded-lg shadow-md p-6 mb-6 hover:shadow-lg transition-shadow duration-300">
                    <h3 class="text-xl font-semibold mb-2">
                        <a href="#" class="text-blue-600 hover:text-blue-800 transition-colors duration-300">Java 8 新特性详解</a>
                    </h3>
                    <p class="text-gray-600 mb-4 leading-relaxed">探索Java 8引入的Lambda表达式、Stream API等新特性，以及它们如何简化代码编写。</p>
                    <a href="#" class="inline-block bg-blue-500 text-white px-4 py-2 rounded-md hover:bg-blue-600 transition-colors duration-300">阅读全文</a>
                </article>
                <article class="bg-white rounded-lg shadow-md p-6 mb-6 hover:shadow-lg transition-shadow duration-300">
                    <h3 class="text-xl font-semibold mb-2">
                        <a href="#" class="text-blue-600 hover:text-blue-800 transition-colors duration-300">Spring Boot 入门指南</a>
                    </h3>
                    <p class="text-gray-600 mb-4 leading-relaxed">从零开始搭建一个Spring Boot项目，了解其核心概念和常用配置。</p>
                    <a href="#" class="inline-block bg-blue-500 text-white px-4 py-2 rounded-md hover:bg-blue-600 transition-colors duration-300">阅读全文</a>
                </article>
                <!-- 更多文章可以继续添加，使用相同的 article 结构 -->
            </section>

            <aside class="sidebar lg:w-1/4">
                <div class="about bg-white rounded-lg shadow-md p-6 mb-6">
                    <h2 class="text-xl font-semibold text-gray-700 mb-4 border-b border-gray-200 pb-2">关于我们</h2>
                    <p class="text-gray-600 leading-relaxed">欢迎来到精通Java编程博客，这里分享技术分享、软件开发心得体会、技术源码分析讨论等内容。</p>
                </div>
                <div class="contact bg-white rounded-lg shadow-md p-6">
                    <h2 class="text-xl font-semibold text-gray-700 mb-4 border-b border-gray-200 pb-2">联系我们</h2>
                    <p class="text-gray-600">邮箱：contact@xiongmingcai.top</p>
                </div>
            </aside>
        </div>
    </main>

    <!-- 页脚 -->
    <footer class="bg-gray-100 text-gray-600 py-6 text-center text-sm mt-10">
        <div class="container mx-auto px-4">
            <p class="mb-1">&copy; 2024 精通Java编程. All rights reserved.</p>
            <p class="mb-1">备案号：湘ICP备2024043969号-1 | 域名：xiongmingcai.top | 服务器IP：106.53.241.88 (gz)</p>
            <p>服务语言：中文简体 | 服务内容：技术分享、软件开发心得体会、技术源码分析讨论。</p>
        </div>
    </footer>
</body>
</html>
